<?php
interface Thing
{
	public function verifyPermission($obj);
	public function deal(&$obj,$arg);
}

class UserLogIn implements Thing
{
	public function verifyPermission($user)
	{
		if ($user instanceof GuestUser)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	
	public function deal(&$user,$arg)
	{
		$name = $user->getName();
		$user = $user->_destroy($user);
		$user = new AdminUser($name);
		return true;
	}
}
?>